package functional;

import java.util.function.Consumer;

/**
 * Author:ZouHeng
 * Description:
 * Date:2021-07-05  11:13
 **/
public class ConsumerDemo {

    public void consumerString(Consumer<String> consumer) {
        consumer.accept("Hello");
    }

    public void printInfo(Consumer<String> one, Consumer<String> two, String[] array) {
        for (String item: array) {
            one.andThen(two).accept(item);
        }
    }
}
